<?php


namespace app\api\controller;


use think\Db;
use think\Request;

class Ly
{
    public function PostLy(Request $request)
    {
        //var_dump($request->param());
        $name = $request->param('name');
        $date = $request->param('create_time');
        $phone = $request->param('phone');
        $QQ = $request->param('QQ');
        $skype = $request->param('skype');
        $company = $request->param('company');
        $email = $request->param('email');
        $liuyan = $request->param('liuyan');
        //var_dump($name);die();
        $data = ['name' => $name, 'create_time'=>$date,'phone' => $phone,'QQ'=>$QQ,'skype'=>$skype,'company'=>$company,'email'=>$email,'liuyan'=>$liuyan];
        $desc = Db::table('tplay_ly')->insert($data);
        if ($desc){
            return '留言成功';
        }

    }
}